<!-- 面包屑 -->
<template>
  <t-breadcrumb>
    <t-breadcrumb-item v-for="(item, index) in breadcrumbData" :key="index">
      <!-- <template #icon><component :is="item.meta.icon" /></template> -->
      {{ item.meta.title }}
    </t-breadcrumb-item>
  </t-breadcrumb>
</template>
<script setup lang="ts">
import { useRoute } from 'vue-router';
import { computed } from 'vue';
const route = useRoute();
let breadcrumbData = computed(() => {
  return route.matched;
});
</script>
